import sys
import os.path
import os
def access(root="."):
  if os.path.isfile(root):
    print root
  elif os.path.isdir(root):
    for path in os.listdir(root):
      access(os.path.join(root,path))
def main():
  if len(sys.argv) > 1:
    access(sys.argv[1])
  else: access()
if __name__ == "__main__":
  main()
    
